package io.cici.common.request;

import io.cici.common.Serializable;
import lombok.Data;


/**
 * TaskTracker 将状态上报给服务器
 *
 * @author tjq
 * @since 2020/3/17
 */
@Data
public class TaskTrackerReportInstanceStatusRequest implements Serializable {

    /**
     * 追加上报自己的 appId
     * 方便后续的监控日志埋点
     */
    private Long appId;

    private Long taskId;

    private Long taskInstanceId;


    private int instanceStatus;

    private String result;

    /* ********* 统计信息 ********* */

    private long totalTaskNum;

    private long succeedTaskNum;

    private long failedTaskNum;

    private long startTime;

    private Long endTime;

    private long reportTime;

    private String sourceAddress;

    /* ********* 秒级任务的告警信息 ********* */

    private boolean needAlert;

    private String alertContent;


}
